import os
import shutil

def delete_files_in_current_directory(folder_name):
    try:
        current_directory = os.path.dirname(os.path.abspath(__file__))
        folder_to_delete = os.path.join(current_directory, folder_name)

        if os.path.exists(folder_to_delete):
            files = os.listdir(folder_to_delete)
            for file_name in files:
                file_path = os.path.join(folder_to_delete, file_name)
                if os.path.isfile(file_path):
                    os.remove(file_path)
                    print(f"Deleted: {file_path}")

            print(f"All files in {folder_name} have been deleted.")
        else:
            print(f"Folder {folder_name} does not exist in {current_directory}.")
    except Exception as e:
        print(f"Error: {e}")

folder_name_to_delete = "Objects"
delete_files_in_current_directory(folder_name_to_delete)
folder_name_to_delete = "Listings"
delete_files_in_current_directory(folder_name_to_delete)